package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 商品实体类
 */
@TableName("t_goods")
public class GoodsBean {
    // 商品id
    @TableId(value = "pk_goodsId",type = IdType.AUTO)
    private Integer id;
    // 商品编号
    @TableField("g_number")
    private Integer number;
    // 商品名称
    @TableField("g_name")
    private String name;
    // 商品 品牌
    @TableField("g_brand")
    private String brand;
    // 商品类型
    @TableField("g_genre")
    private String genre;
    // 采购价格
    @TableField("g_price")
    private Integer price;
    // 销售价
    @TableField("g_sellPrice")
    private Integer sellPrice;
    // 库存数量
    @TableField("g_num")
    private Integer num;
    @TableField("g_img")
    private String img;

    public GoodsBean() {
    }

    public GoodsBean( Integer number, String name, String brand, String genre, Integer price, Integer sellPrice, Integer num,String img) {
        this.number = number;
        this.name = name;
        this.brand = brand;
        this.genre = genre;
        this.price = price;
        this.sellPrice = sellPrice;
        this.num = num;
        this.img=img;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Integer sellPrice) {
        this.sellPrice = sellPrice;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "GoodsBean{" +
                "id=" + id +
                ", number=" + number +
                ", name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", genre='" + genre + '\'' +
                ", price=" + price +
                ", sellPrice=" + sellPrice +
                ", num=" + num +
                ", img='" + img + '\'' +
                "}\n";
    }
}
